package com.example.treasure_back.model;

import com.baomidou.mybatisplus.annotation.*;
import com.example.treasure_back.enumerate.ExchangeType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("exchange_record")
public class ExchangeRecordModel {
    @TableId( type = IdType.AUTO)
    private Integer id;
    private String email;
    private Integer goodsId;
    @TableField (fill = FieldFill.INSERT)
    private Date getTime;
    @TableField (fill = FieldFill.INSERT)
    private Date dueTime;
    @TableField (fill = FieldFill.UPDATE)
    private Date exchangeTime;
    private ExchangeType status;

}
